package com.qrxl.util;


import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 短信服务
 *
 * @author zhoukuns
 * @date 2018/4/25
 */
public class AliAcsClient {
    static Logger logger = LoggerFactory.getLogger(AliAcsClient.class);
    private static IAcsClient client = null;

    private static String appKey_Android = "FFFFA0000000017B1F09";

    private static String appKey_IOS = "FFFFI0000000017B1D0A";

    static {
        try {
            IClientProfile profile = DefaultProfile.getProfile("cn-hangzhou",
                    "LTAIouAhIJXtTiDt", "6LuP5CWG7n1mfUn5JsfHFPrF28vjYg");
            client = new DefaultAcsClient(profile);
            DefaultProfile.addEndpoint("cn-hangzhou", "cn-hangzhou", "afs", "afs.aliyuncs.com");
        } catch (Exception e) {
            logger.error("", e);
        }
    }
}
